// 详情用法请参考：https://www.uviewui.com/js/http.html
const http = uni.$u.http

// 登录
export const wechatLogin = params => http.post('/login/wechatLogin', params)

// 获取微信信息
export const wechatUserInfo = params => http.post('/login/wechatUserInfo', params)

// 获取用户信息
export const getInfo = params => http.get('/getInfo', params)

// 内容检测
export const msgSecCheck = params => http.post('/api/weChat/msgSecCheck', params)

// 保存用户信息
export const saveUserInfo = params => http.put('/system/user/profile', params)

// 用户积分信息
export const userIntegralInfo = params => http.get(`/system/integral/list/${params}`)

// 上传文件
export const uploadFile = params => http.post('/common/upload', params)

// 更新用户积分
export const updateIntegral = params => http.post('/system/user/updateIntegral', params)

// 微信手机登录
export const decryptPhone = params => http.post('/weChat/decryptPhone', params)

// 试卷省份接口
export const papersCategory = params => http.get(`/compare/papers/category/${params}`)

// 申论试卷省份年份接口
export const categoryYear = params => http.get(`/compare/papers/list/${params}`)

// 申论试卷详情接口
export const paperDetail = id => http.get(`/compare/papers/${id}`)

// 申论答案点赞接口
export const answerLike = answerId => http.post(`/compare/like/${answerId}`)






